package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: TfGoodsCodeOneEnum
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/7/3
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum TfGoodsCodeTwoEnum implements BaseEnum<String> {

    YUNSHI("01", "运势类", TfGoodsCodeOneEnum.CESUAN),
    YINYUAN("02", "姻缘类", TfGoodsCodeOneEnum.CESUAN),
    BAOBAO("03", "宝宝起名", TfGoodsCodeOneEnum.QIMING),
    GONGSI("04", "公司起名", TfGoodsCodeOneEnum.QIMING);

    private final String code;

    private final String desc;

    private final TfGoodsCodeOneEnum oneEnum;

    public static TfGoodsCodeTwoEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(TfGoodsCodeTwoEnum.class, code);
    }
}
